package bank;

import javax.swing.JButton;
import javax.swing.JFrame;

public class Controller extends JFrame {
	private DTO dto;
	private Service service;

	public static void main(String[] args) {
		Controller controller = new Controller();
	}

	public Controller() {
		this.setSize(400, 400);
		this.setVisible(true);
		JButton btn = new JButton("ok");
		this.add(btn);
	}

	public void login() {
		try {
			service.login(dto);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public void logout() {
		service.logout(dto);
	}
}
